{include file='common/header'}


<body class="layui-layout-body">
    <div id="LAY_app">
        <div class="layui-layout layui-layout-admin">
          {include file='common/top'}
          {include file='common/left'}
          <!-- 页面标签 -->
          <div class="layadmin-pagetabs" id="LAY_app_tabs">
            <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-down">
              <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
                <li class="layui-nav-item" lay-unselect>
                  <a href="javascript:;"></a>
                  <dl class="layui-nav-child layui-anim-fadein">
                    <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
                    <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
                    <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
                  </dl>
                </li>
              </ul>
            </div>
            <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
              <ul class="layui-tab-title" id="LAY_app_tabsheader">
                <li lay-id="index/main.html" lay-attr="index/main.html" class="layui-this"><i class="layui-icon layui-icon-home"></i></li>
              </ul>
            </div>
          </div>
          
          
          <!-- 主体内容 -->
          <div class="layui-body" id="LAY_app_body">
            <div class="layadmin-tabsbody-item layui-show">
              <iframe src="{:url('main')}" frameborder="0" class="layadmin-iframe"></iframe>
            </div>
          </div>
          
          <!-- 辅助元素，一般用于移动设备下遮罩 -->
          <div class="layadmin-body-shade" layadmin-event="shade"></div>
        </div>
    </div>
{include file='common/footer'}
<script>
$('#cache').click(function () {
    document.cookie="skin=;expires="+new Date().toGMTString();
    layer.confirm('确认要清除缓存？', {icon: 3}, function () {
        $.post('{:url('clear')}',function (data) {
          var json = JSON.parse(data);
            layer.msg(json.info, {icon: 6}, function (index) {
                layer.close(index);
                window.location.reload();
            });
        });
    });
});
</script>